package com.elvin.platform.beans;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 报警记录表
 * </p>
 *
 * @author zhenchl
 * @since 2022-04-26
 */
@TableName("alarm_record")
public class AlarmRecord extends Model<AlarmRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 设备表ID
     */
    private Long deviceId;
    /**
     * 报警时间
     */
    private Date alarmTime;
    /**
     * 确认时间
     */
    private String conformTime;
    /**
     * 确认原因
     */
    private String alarmCause;
    /**
     * 备注
     */
    private String comments;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 报警值
     */
    private String alarmValue;
    /**
     * 产品ID
     */
    private String proId;
    /**
     * 设备ID
     */
    private String devId;
    /**
     * 报警命令字符串
     */
    private String args;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Date getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(Date alarmTime) {
        this.alarmTime = alarmTime;
    }

    public String getConformTime() {
        return conformTime;
    }

    public void setConformTime(String conformTime) {
        this.conformTime = conformTime;
    }

    public String getAlarmCause() {
        return alarmCause;
    }

    public void setAlarmCause(String alarmCause) {
        this.alarmCause = alarmCause;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAlarmValue() {
        return alarmValue;
    }

    public void setAlarmValue(String alarmValue) {
        this.alarmValue = alarmValue;
    }

    public String getProId() {
        return proId;
    }

    public void setProId(String proId) {
        this.proId = proId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getArgs() {
        return args;
    }

    public void setArgs(String args) {
        this.args = args;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AlarmRecord{" +
        "id=" + id +
        ", deviceId=" + deviceId +
        ", alarmTime=" + alarmTime +
        ", conformTime=" + conformTime +
        ", alarmCause=" + alarmCause +
        ", comments=" + comments +
        ", createTime=" + createTime +
        ", alarmValue=" + alarmValue +
        ", proId=" + proId +
        ", devId=" + devId +
        ", args=" + args +
        "}";
    }
}
